<?php

/**
 * Withdraw_log
 * 
 * @Table Schema: gaoqi_api
 * @Table Name: withdraw_log
 */
class WithdrawLogModel extends \Base\Model\AbstractModel {

    /**
     * Id
     * 
     * Column Type: int(10) unsigned
     * auto_increment
     * PRI
     * 
     * @var int
     */
    protected $_id = null;

    /**
     * Trade_no
     * 
     * Column Type: char(32)
     * 
     * @var string
     */
    protected $_tradeNo = '';

    /**
     * Wechat_no
     * 
     * Column Type: char(32)
     * 
     * @var string
     */
    protected $_wechatNo = '';

    /**
     * Add_time
     * 
     * Column Type: int(10) unsigned
     * 
     * @var int
     */
    protected $_addTime = null;

    /**
     * Id
     * 
     * Column Type: int(10) unsigned
     * auto_increment
     * PRI
     * 
     * @param int $id
     * @return \WithdrawLogModel
     */
    public function setId($id) {
        $this->_id = (int)$id;

        return $this;
    }

    /**
     * Id
     * 
     * Column Type: int(10) unsigned
     * auto_increment
     * PRI
     * 
     * @return int
     */
    public function getId() {
        return $this->_id;
    }

    /**
     * Trade_no
     * 
     * Column Type: char(32)
     * 
     * @param string $tradeNo
     * @return \WithdrawLogModel
     */
    public function setTrade_no($tradeNo) {
        $this->_tradeNo = (string)$tradeNo;

        return $this;
    }

    /**
     * Trade_no
     * 
     * Column Type: char(32)
     * 
     * @return string
     */
    public function getTrade_no() {
        return $this->_tradeNo;
    }

    /**
     * Wechat_no
     * 
     * Column Type: char(32)
     * 
     * @param string $wechatNo
     * @return \WithdrawLogModel
     */
    public function setWechat_no($wechatNo) {
        $this->_wechatNo = (string)$wechatNo;

        return $this;
    }

    /**
     * Wechat_no
     * 
     * Column Type: char(32)
     * 
     * @return string
     */
    public function getWechat_no() {
        return $this->_wechatNo;
    }

    /**
     * Add_time
     * 
     * Column Type: int(10) unsigned
     * 
     * @param int $addTime
     * @return \WithdrawLogModel
     */
    public function setAdd_time($addTime) {
        $this->_addTime = (int)$addTime;

        return $this;
    }

    /**
     * Add_time
     * 
     * Column Type: int(10) unsigned
     * 
     * @return int
     */
    public function getAdd_time() {
        return $this->_addTime;
    }

    /**
     * Return a array of model properties
     * 
     * @return array
     */
    public function toArray() {
        return array(
            'id'        => $this->_id,
            'trade_no'  => $this->_tradeNo,
            'wechat_no' => $this->_wechatNo,
            'add_time'  => $this->_addTime
        );
    }

}
